package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "聊天")
public class GDChat {

    @NoteClass(value = "聊天-频道")
    public static class Channel {
        @NoteField(value = "未定义的频道")
        public static final byte NONE = -1;

        @NoteField(value = "仙盟")
        public static final byte GUILD = 1;

        @NoteField(value = "本服（本服全体在线）")
        public static final byte WORLD = 2;

        @NoteField(value = "私聊")
        public static final byte PRIVATE = 3;

        @NoteField(value = "跨服")
        public static final byte CROSS = 20;

        @NoteField(value = "战区")
        public static final byte ZONE = 21;

        @NoteField(value = "战区:段位赛")
        public static final byte ZONE_DWS = 22;
        @NoteField(value = "战区:冠军赛")
        public static final byte ZONE_CHAMPION = 23;
        @NoteField(value = "战区:王座争霸")
        public static final byte THRONE_BATTLE = 24;

        @NoteField(value = "精英赛")
        public static final byte ELITE_RACE = 5;
        @NoteField("跨服精英赛")
        public static final byte CHAMPION_RACE = 6;

        @NoteField(value = "全服")
        public static final byte GROUP = 12;

        @NoteField(value = "系统")
        public static final byte SYSTEM = 99;
    }

//    @NoteField(value = "无视聊天等级限制的VIP")
//    public static int VIP_LEVEL;

    @NoteField(value = "发言间隔")
    public static long CHAT_INTERVAL;


    public static void initialize(ParamSheet paramSheet) {
//        VIP_LEVEL = GDParamTool.getInt(paramSheet, 1205, 1);
        CHAT_INTERVAL = GDParamTool.getInt(paramSheet, 1206, 60) * 1000;
    }
}
